package test;


import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.lti.appnet.mongodb.configuration.MongoDBConfiguration;



@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.lti")
 public class Application implements CommandLineRunner{
//public class Application  {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(new Class[] { Application.class,MongoDBConfiguration.class}, args);
	}

	@Override
	public void run(String... arg0) throws Exception {
		//topicUrlCreateEvent.createTopicUrl();
		//questionUrlCreateEvent.createQuestionUrl();
		//questionContentEvents.createQuestionContent();
		
	}

	/*@Override
	public void run(String... args) throws Exception {
		topicUrlCreateEvent.createTopicUrl();
	}*/

	/*
	 * @Override public void run(String... arg0) throws Exception { UserChat
	 * userChat = new UserChat(); userChat.setChatID("1");
	 * userChat.setJoinDate(new Date()); userChat.setUserID("2");
	 * u.save(userChat); }
	 */
}
